<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<body>
	<form:form method="post" action="create" class="form-horizontal" commandName="newMunicipio">
		<fieldset>
			<legend>Município</legend>

			<div class="form-group error">
				<form:label class="col-lg-2 control-label" path="nome"> 
                             Nome <form:errors path="nome" />
				</form:label>
				<div class="col-lg-6">
					<form:input path="nome" class="form-control" placeholder="nome" />
				</div>
			</div>
			<div class="form-group error">
				<form:label class="col-lg-2 control-label" path="uf.sigla"> 
                             UF <form:errors path="uf.sigla" />
				</form:label>
				<div class="col-lg-6">
					<form:select path="uf.id" class="form-control">
						<form:option value="0" label="--- Selecione ---" />
						<form:options items="${ufList}" itemLabel="nome" itemValue="id" />
					</form:select>
				</div>
			
			</div>
			<div class="btn-group">
				<input type="submit" value="Salvar" class="btn btn-primary" />
			</div>
		</fieldset>
	</form:form>
</body>